﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListMenuChild.ascx.cs"
    Inherits="Admin_ucControl_ucListMenuChild" %>
<div id="tabledata" class="section">
    <h2 class="ico_mug">
        DANH MỤC LOẠI XE HƠI</h2>
    <table>
        <tr>
            <td>
                <table width="500px" style="line-height: 40px;">
                    <tr>
                        <td>
                            Menu Child
                        </td>
                        <td>
                            <asp:TextBox ID="txtMenuChildName" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                                ControlToValidate="txtMenuChildName" ValidationGroup="save"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Menu Parrent
                        </td>
                        <td>
                            <asp:DropDownList ID="drMenuPa" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Lưu" ValidationGroup="save" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                <table>
                    <tr>
                        <td colspan="2" style="padding-left: 20px;">
                            <asp:GridView ID="grdMenuChild" runat="server" BackColor="White" BorderColor="#3366CC"
                                BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False"
                                Width="300px">
                                <Columns>
                                    <asp:HyperLinkField DataNavigateUrlFields="IDMenuChild" DataTextField="IDMenuChild"
                                        HeaderText="ID" DataNavigateUrlFormatString="~/Admin/Insert-Update-Product.aspx?id={0}">
                                        <ItemStyle ForeColor="Blue" />
                                    </asp:HyperLinkField>
                                    <asp:TemplateField HeaderText="Phân loại nhỏ ">
                                        <ItemTemplate>
                                            <asp:Label ID="lbName" runat="server" Text='<%# Eval("MenuChildName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                       <asp:TemplateField HeaderText="Loai Xe Hoi">
                                        <ItemTemplate>
                                            <asp:Label ID="lbName" runat="server" Text='<%# Eval("MenuParentName") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>

                                </Columns>
                                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                                <RowStyle BackColor="White" ForeColor="#003399" />
                                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                              
                            </asp:GridView>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>
